package cn.edu.xaut.mybatisers.mall.Entity;

import org.springframework.web.multipart.MultipartFile;

public class Commodity {
    private int id;
    private int category_id;
    private String name;
    private double price;
    private String commoditydescribe;
    private String picture_name;
    private double discount;
    private int favouriteNumber;
    private String isNew;
    private String isHot;
    private int repertory_number;
    private MultipartFile picture;

    // 作用与商品查询
    private Double top_price;
    private Double below_price;

    public int getId() {
        return id;
    }

    public int getCategory_id() {
        return category_id;
    }

    public String getName() {
        return name;
    }

    public String getCommoditydescribe() {
        return commoditydescribe;
    }

    public double getDiscount() {
        return discount;
    }

    public int getFavouriteNumber() {
        return favouriteNumber;
    }

    public String getIsNew() {
        return isNew;
    }

    public String getIsHot() {
        return isHot;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setCategory_id(int category_id) {
        this.category_id = category_id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setCommoditydescribe(String commoditydescribe) {
        this.commoditydescribe = commoditydescribe;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }

    public void setFavouriteNumber(int favouriteNumber) {
        this.favouriteNumber = favouriteNumber;
    }

    public void setIsNew(String isNew) {
        this.isNew = isNew;
    }

    public void setIsHot(String isHot) {
        this.isHot = isHot;
    }

    public int getRepertory_number() {
        return repertory_number;
    }

    public void setRepertory_number(int repertory_number) {
        this.repertory_number = repertory_number;
    }

    public String getPicture_name() {
        return picture_name;
    }

    public void setPicture_name(String picture_name) {
        this.picture_name = picture_name;
    }

    public MultipartFile getPicture() {
        return picture;
    }

    public void setPicture(MultipartFile picture) {
        this.picture = picture;
    }

    public Double getTop_price() {
        return top_price;
    }

    public void setTop_price(double top_price) {
        this.top_price = top_price;
    }

    public Double getBelow_price() {
        return below_price;
    }

    public void setBelow_price(double below_price) {
        this.below_price = below_price;
    }

    @Override
    public String toString() {
        return "Commodity{" +
                "id='" + id + '\'' +
                ", category_id='" + category_id + '\'' +
                ", name='" + name + '\'' +
                ", commoditydescribe='" + commoditydescribe + '\'' +
                ", discount=" + discount +
                ", favouriteNumber=" + favouriteNumber +
                ", isNew='" + isNew + '\'' +
                ", isHot='" + isHot + '\'' +
                '}';
    }
}
